package org.shiwen.week6.friday;

public class HardDisk {
    private int amount;

//    public void getAmount() {
//        return amount;
//    }
    //get方法需要返回值，所以返回类型不能是void

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getAmount() {
        return amount;
    }
}
